{/* LAYOUT模板 */}
<layout name="layout"/>
{/* LAYOUT模板 */}

<include file="Template:position"/>

<div>
	<div>
		<a href="__APP__/adverse/addAdverse" class="btn btn-primary">添加滚动图片</a>
	</div>
	<div class="panel panel-default"  style="margin-top: 10px;">
		<table class="table table-striped table-bordered">
		  <tr class="a1">
			<th align="center">{$Think.lang.number}</th>
			<th align="center">{$Think.lang.ad_name}</th>
			<th align="center">{$Think.lang.ad_position}</th>
			<th align="center">{$Think.lang.ad_type}</th>
			<th align="center">{$Think.lang.start_time}</th>
			<th align="center">{$Think.lang.end_time}</th>
			<th align="center">{$Think.lang.is_timeout}</th>
			<th align="center">{$Think.lang.click_count}</th>
			<th align="center">{$Think.lang.action}</th>
		  </tr>
		  
		  <tr id="tr_{$vo.cartoon_id}">
			<td align="center">{$vo.ad_id}</td>
			<td>{$vo.ad_name}</td>
			<td>{$vo.position}</td>
			<td>{$vo.media_type}</td>
			<td>{$vo.start_time|date='Y-m-d',###}</td>
			<td>{$vo.end_time|date='Y-m-d',###}</td>
			<td>{$vo.is_timeout}</td>
			<td>{$vo.click_count}</td>
			<td>
				<div style="width:200px;">
					<a >{$lang.look}</a>&nbsp;
					<a href="__APP__/Adverse/updatead/?id={$vo.ad_id}">{$lang.edit}</a>&nbsp;
					<a href="javascript:listTable.remove({$vo.ad_id},'{$lang.confirm_text}');">{$lang.delete}</a>&nbsp;
				</div>
			</td>
		  </tr>
		  
		  <volist name="adlist" id="vo">
			<tr id="tr_{$vo.cartoon_id}">
				<td align="center">{$vo.ad_id}</td>
				<td>{$vo.ad_name}</td>
				<td>{$vo.position}</td>
				<td>{$vo.media_type}</td>
				<td>{$vo.start_time|date='Y-m-d',###}</td>
				<td>{$vo.end_time|date='Y-m-d',###}</td>
				<td>{$vo.is_timeout}</td>
				<td>{$vo.click_count}</td>
				<td>
					<div style="width:200px;">
						<a >{$lang.look}</a>&nbsp;
						<a href="__APP__/Adverse/updatead/?id={$vo.ad_id}">{$lang.edit}</a>&nbsp;
						<a href="javascript:listTable.remove({$vo.ad_id},'{$lang.confirm_text}');">{$lang.delete}</a>&nbsp;
					</div>
				</td>
			  </tr>
		  </volist>			 
		</table>
	</div>
	<include file="Template:paginator"/>
</div>


	
	
<script>
	//Delete Datas
	listTable.init("__APP__/Adverse/adAjaxTable");
</script>


<include file="Template:pagefooter"/>


